import request from '@/utils/request'

export function getDiscount(data) {
  return request({
    url: 'discount/page',
    method: 'post',
    data
  })
}

export function getDiscountDetail(data) {
  return request({
    url: '/discount/' + data,
    method: 'get'
  })
}
